package cn.chenxhcloud.myvv;

import java.io.IOException;

import org.voovan.network.aio.AioSocket;
import org.voovan.network.filter.StringFilter;
import org.voovan.network.messagesplitter.LineMessageSplitter;
import org.voovan.tools.log.Logger;

/**
 * 
 * @author chenxh
 *
 */
public class client {
	public static void main(String[] args) throws IOException {
		AioSocket socket = new AioSocket("127.0.0.1", 2031, 300);
		socket.handler(new ClientHandler());
		socket.filterChain().add(new StringFilter());
		socket.messageSplitter(new LineMessageSplitter());
		socket.start();
		Logger.simple("Terminate");
	
	}
	

}
